06270ad01064d35d8e220212ae4646d9aae9f844,OpenStreetMapViewer/src/main/java/org/osmdroid/intro/StoragePreferenceFragment.java,StoragePreferenceFragment,showPickCacheFromList,#,96

Before Change


        AlertDialog.Builder builder = new AlertDialog.Builder(this.getContext());
        builder.setTitle(R.string.enterCacheLocation);

        final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(this.getContext(), android.R.layout.select_dialog_singlechoice);

        final List<StorageUtils.StorageInfo> storageList = StorageUtils.getStorageList();
        for (int i = 0; i < storageList.size(); i++) {

After Change


        } catch (Exception ex) {
        }
        storageListFiltered.add(new StorageUtils.StorageInfo("/data/data/" + getActivity().getPackageName() + "/osmdroid/", true, false, 0));
        final StorageAdapter arrayAdapter = new StorageAdapter(this.getContext(), storageListFiltered);

        builder.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {
            @Override